home *** CD-ROM | disk | FTP | other *** search
- Path: gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl
- From: "Marek Brudka (A. Pacut)" <brudka@ia.pw.edu.pl>
- Newsgroups: comp.lang.c
- Subject: Re: making an <include.h> file
- Date: Wed, 03 Apr 1996 19:52:11 +0200
- Organization: Warsaw University of Technology
- Message-ID: <3162BACB.1ABE@ia.pw.edu.pl>
- References: <4js1iu$p1i@newsbf02.news.aol.com>
- NNTP-Posting-Host: bobas.ia.pw.edu.pl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 3.0b2 (X11; I; SunOS 5.4 sun4c)
-
- MJAlford wrote:
- >
- > How does one setup a UNIX System / Makefile so that a "*.h" file is
- > considered
- > a system include file? I don't want to put it in /usr/include. I'm
- > assuming I do
- > the same thing so that my "library.so" is considered a system library.
- >
- > Thanks,
- > Michael Alford
- >
- You can do it in few ways, generally you should modify the search path
- for include(library) files. I do not know what UNIX/compiler you use
- but I suppose you can do one of the following:
- 1. Add appropriate switch to your command line when invoking the cc,
- for example (Solaris): cc <something> -IPathToMyIncludeFiles
- 2. Change in your makefile the CCFLAG variable, or change the default
- makefile rules (for Solaris OS :</usr/share/lib/make/make.rules>)
- 3. Various unixlike OSes have compilers looking for an appropriate
- system variable for example: INCLUDE (Watcom). Add to this variable the
- directory containig your include files in your profile.
-
- I hope presented suggestions help you to deal with the problem.
- Regards
- Marek Brudka
-